<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="../Templates/InnerSystemTemplate.xhtml"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core">
    <ui:define name="head-title">
        <title>Message Me | Merlion's ERP System</title>
    </ui:define>
    <ui:define name="content">
        <f:view beforePhase="#{plannedMonthlyDemand.initView}">
            <h:form prependId="false">   
                <p:dataTable var="data" value="" id="table">  
                    <p:columns value="#{plannedMonthlyDemand.simpleColumns}"  
                                var="column" columnIndexVar="colIndex" >  
                        <f:facet name="header">  
                            #{column.header}  
                        </f:facet>  

                        <h:form>  
                            <p:dataTable var="row" value="#{plannedMonthlyDemand.dataList}">  
                                <p:column>
                                    <f:facet name="header">  
                                    </f:facet> 
                                    <h:outputText value="#{row[column.property]}" /> 
                                </p:column>                      
                            </p:dataTable>  
                        </h:form>  
                    </p:columns>  
                </p:dataTable>  
            </h:form>  
        </f:view>
    </ui:define>
</ui:composition>
